﻿using FluentValidation;

namespace FileService.WebApi.Controllers
{
    public record VideoRequest(long TabId, string Name);
    public class VideoRequestValidator : AbstractValidator<VideoRequest>
    {
        public VideoRequestValidator()
        {
            RuleFor(e => e.TabId).NotNull().NotEmpty();
            RuleFor(e => e.Name).NotNull().NotEmpty();
        }
   
    }
}